<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">

	<f:metadata>
      <f:viewParam name="nifCustomer" value="#{customershow.nifCustomer}"/>
	</f:metadata>

<ui:composition template="./headerView.xhtml">
	<ui:define name="content">
		<br/>
 		<h:form rendered="#{!empty customershow.nifCustomer}">
 			<p><b><font face="geneva,verdana,arial" size="4">Client Detail</font></b></p>
			    <table>
					<tr>
						<td align="right">Client NIF:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="9" name="nifCustomer" size="10" value="#{customershow.dataCustomer.nif}"/></td>
					</tr>
					
					<tr>
						<td align="right">Client e-mail:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="9" name="emailCustomer" size="10" value="#{customershow.dataCustomer.email}"/></td>
					</tr>
					
					<tr>
						<td align="right">Client Name:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="30" name="nameCustomer" size="31" value="#{customershow.dataCustomer.name}"/></td>
					</tr>
			        <tr>
						<td align="right">Client Surname:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="30" name="nameCustomer" size="31" value="#{customershow.dataCustomer.surname}"/></td>
					</tr>
			
			         <tr>
						<td align="right">Client BirthDate:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="10" name="birthdateCustomer" size="11" value="#{customershow.dataCustomer.birthdate}" /></td>
					</tr>
			    </table>
			<h:commandButton value="Back" immediate="true" action="#{customershow.back1}" />
			<br/>
			<h:commandButton value="Home" immediate="true" action="#{customershow.index}" />
 		</h:form>
 		
 		<h:form rendered="#{empty customershow.nifCustomer}">
 			<p><b><font face="geneva,verdana,arial" size="4">Client Detail</font></b></p>
			    <table>
					<tr>
						<td align="right">Client NIF:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="9" name="nifCustomer" size="10" value="#{customerLogin.dataCustomer.nif}"/></td>
					</tr>
					
					<tr>
						<td align="right">Client e-mail:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="9" name="emailCustomer" size="10" value="#{customerLogin.dataCustomer.email}"/></td>
					</tr>
					
					<tr>
						<td align="right">Client Name:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="30" name="nameCustomer" size="31" value="#{customerLogin.dataCustomer.name}"/></td>
					</tr>
			        <tr>
						<td align="right">Client Surname:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="30" name="nameCustomer" size="31" value="#{customerLogin.dataCustomer.surname}"/></td>
					</tr>
			
			         <tr>
						<td align="right">Client BirthDate:</td>
						<td align="left"><input type="text" disabled="disabled" maxlength="10" name="birthdateCustomer" size="11" value="#{customerLogin.dataCustomer.birthdate}" /></td>
					</tr>
			    </table>
            <p><h:commandButton value="Update" action="modifyClientView" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<h:commandButton value="About shipping address..." action="#{modifyShipping.ListShipping}" /></p>
	        <br/><br/><br/>
			<h:commandButton value="Back" immediate="true" action="#{customershow.index}" />
 		</h:form>
	</ui:define>
</ui:composition>
</html>
